import http from '~/server/axios_creater';

interface RequestParametersType {
  [key: string]: any;
}

interface ResponseParameterType {
  id: number;
  ishan: string;
  success: boolean;
}

export const getApiDemo = (params: RequestParametersType) => {
  return http.get<ResponseParameterType>(`/love`, params);
};

export const test = (params: RequestParametersType) => {
  return http.get<ResponseParameterType>(
    `https://backendapi.iccs.com.cn:7443/api/HRRedPacket/JudgeEmployee`,
    params,
  );
};
